#[macro_use]
pub mod utils;
pub mod app;
pub mod controllers;
pub mod errors;
pub mod mdb;
pub mod middlewares;
pub mod models;
pub mod services;
pub mod tasks;

use std::sync::Arc;

pub use errors::{AppError, AppResult, ToResponse};
pub use utils::{
    cache::MemoryCache,
    config::{Config, GLOBAL_CONFIG},
    pagination::{Pagination, PaginationQuery, ToPagination},
};
pub type ArcConfig = Arc<Config>;
pub mod prelude {
    pub use super::{AppError, AppResult, ToPagination, ToResponse};
}
